/** When your routing table is too long, you can split it into small modules **/

import Layout from '@/layout'

const plantRouter = {
  path: '/plant',
  component: Layout,
  hidden: false,
  alwaysShow: false, // will always show the root menu
  redirect: '/plant/lineDef',
  name: 'Plant',
  meta: {
    title: 'plant',
    icon: 'el-icon-location-outline'
  },
  children: [
    {
      path: 'lineDef',
      component: () => import('@/views/plant/lineDef'),
      name: 'LineDef',
      meta: { title: 'lineDef', roles: ['admin'] }
    }
  ]
}

export default plantRouter
